package docs.oracle.com;

/**
 * Created by msingh on 2014-06-27.
 */
public class Bicycle {
    private int speed;
    private int cadence;
    private int gear;

    public Bicycle(int startcadence, int startgear, int startspeed) {
        cadence = startcadence;
        speed = startspeed;
        gear = startgear;
    }

    public int getCadence() {
        return cadence;
    }

    public void setCadence(int newValue) {
        cadence = newValue;
    }

    public int getGear() {
        return gear;
    }

    public void setGear(int newValue) {
        gear = newValue;
    }

    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int newValue) {
        speed = newValue;
    }

    public void printDescription() {
        System.out.println("\nBike is " + "in gear " + this.gear
                + " with a cadence of " + this.cadence +
                " and travelling at a speed of " + this.speed + ". ");
    }


}
